package com.ganwei.springcloud.service;

import com.ganwei.springcloud.dao.PaymentDao;
import com.ganwei.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService{

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int insertPayment(Payment payment){
        return paymentDao.insertPayment(payment);
    }



    @Override
    public Payment getpaymentById(Long id){
        return paymentDao.getpaymentById(id);
    }

}
